<template>
  <div>
    <h1>HelloWorld组件</h1>
    <p>name: {{ name }}, users: {{ users }}</p>
    <button @click="$emit('set-data', 22)">发射</button>
  </div>
</template>

<script>
export default {
  name: "Vue2demoHelloWord",
  props: {
    name: {
      type: String,
      default: "",
    },
    users: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style lang="scss" scoped></style>
